Skip to content

gh-160466: Add colors to the pprint module - #160468

Draft
ZeroIntensity wants to merge 3 commits into
python:mainfrom
ZeroIntensity:pprint/colors
Draft

ZeroIntensity wants to merge 3 commits into
python:mainfrom
ZeroIntensity:pprint/colors

Conversation

@ZeroIntensity

@ZeroIntensity ZeroIntensity commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 23, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Oct 23, 2026
@read-the-docs-community

read-the-docs-community Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #36186496 | 📁 Comparing 7e440d2 against main (3a440b6)

  🔍 Preview build  

204 files changed · + 1 added · ± 203 modified

+ Added

± Modified

Comment thread Lib/_colorize.py
tag: str


def gen_colors(buffer: str) -> Iterator[ColorSpan]:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move the shared tokenizer in a separate PR? That leaves the public color argument and the default output change for review together.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but I'm going to wait until PEP 813 has a resolution before doing anything more with this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants